//
//  StartViewController.swift
//  Simple Drawing
//
//  Created by Umair Ahmad on 03/01/2020.
//  Copyright © 2020 Vethics LLP. All rights reserved.
//

import UIKit

class StartViewController: UIViewController {

    
    @IBOutlet weak var ratebTN: UIButton!
    @IBOutlet weak var padBtn: UIButton!
    
    
    var appID = "1493497822"
    
    override func viewDidLoad() {
        super.viewDidLoad()

        ratebTN.layer.cornerRadius = ratebTN.frame.height / 2
        ratebTN.clipsToBounds = true
        
        padBtn.layer.cornerRadius = padBtn.frame.height / 2
        padBtn.clipsToBounds = true
        // Do any additional setup after loading the view.
    }
    
    @IBAction func padPressed(_ sender: UIButton) {
        
        if let vc = storyboard?.instantiateViewController(withIdentifier: "DrawingViewController") as? DrawingViewController {
            
            self.present(vc, animated: false, completion: nil)
        }
    }
    
    

    @IBAction func ratePressed(_ sender: UIButton) {
        
        UIApplication.shared.openURL(URL(string : "itms-apps://itunes.apple.com/app/id\(appID)")!)
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
